﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bdcs.Core.Entity
{
    /// <summary>
    /// Base_MacExt数据模型对象
    /// </summary>
    [Serializable]
    public partial class Base_MacExtMod
    {
        /// <summary>
        /// 初始化Base_MacExt数据模型对象
        /// </summary>
        public Base_MacExtMod()
        {
            
        }
        /// <summary>
        /// 初始化Base_MacExt数据模型对象并给在SQL中不能为空的字段赋值
        /// </summary>
        /// <param name="iD">ID</param>
        /// <param name="macID">macID</param>
        /// <param name="longi">longi</param>
        /// <param name="lati">lati</param>
        /// <param name="remark">remark</param>
        /// <param name="changeTime">ChangeTime</param>
        public Base_MacExtMod(long iD,string macID,decimal longi,decimal lati,string remark,DateTime changeTime)
        {
            //给ID字段赋值
            this.ID = iD;
            //给macID字段赋值
            this.MacID = macID;
            //给longi字段赋值
            this.Longi = longi;
            //给lati字段赋值
            this.Lati = lati;
            //给remark字段赋值
            this.Remark = remark;
            //给ChangeTime字段赋值
            this.ChangeTime = changeTime;
        }
        /// <summary>
        /// 初始化Base_MacExt数据模型对象并给所有字段赋值
        /// </summary>
        /// <param name="iD">ID</param>
        /// <param name="macID">macID</param>
        /// <param name="longi">longi</param>
        /// <param name="lati">lati</param>
        /// <param name="remark">remark</param>
        /// <param name="changeTime">ChangeTime</param>
        /// <param name="sig">sig</param>
        public Base_MacExtMod(long iD,string macID,decimal longi,decimal lati,string remark,DateTime changeTime,int? sig)
        {
            //给ID字段赋值
            this.ID = iD;
            //给macID字段赋值
            this.MacID = macID;
            //给longi字段赋值
            this.Longi = longi;
            //给lati字段赋值
            this.Lati = lati;
            //给remark字段赋值
            this.Remark = remark;
            //给ChangeTime字段赋值
            this.ChangeTime = changeTime;
            //给sig字段赋值
            this.Sig = sig;
        }
        
		//属性存储数据的变量
        private long _iD;
        private string _macID;
        private decimal _longi;
        private decimal _lati;
        private string _remark;
        private DateTime _changeTime;
        private int? _sig;
        
        /// <summary>
        /// ID
        /// </summary>
        public long ID
        {
            get { return this._iD; }
            set { this._iD = value; }
        }
        /// <summary>
        /// macID
        /// </summary>
        public string MacID
        {
            get { return this._macID; }
            set { this._macID = value; }
        }
        /// <summary>
        /// longi
        /// </summary>
        public decimal Longi
        {
            get { return this._longi; }
            set { this._longi = value; }
        }
        /// <summary>
        /// lati
        /// </summary>
        public decimal Lati
        {
            get { return this._lati; }
            set { this._lati = value; }
        }
        /// <summary>
        /// remark
        /// </summary>
        public string Remark
        {
            get { return this._remark; }
            set { this._remark = value; }
        }
        /// <summary>
        /// ChangeTime
        /// </summary>
        public DateTime ChangeTime
        {
            get { return this._changeTime; }
            set { this._changeTime = value; }
        }
        /// <summary>
        /// sig
        /// </summary>
        public int? Sig
        {
            get { return this._sig; }
            set { this._sig = value; }
        }
        
        /// <summary>
        /// 对比两个Base_MacExt数据模型对象是否一致
        /// </summary>
        /// <param name="obj">要进行比对的Base_MacExt数据模型对象</param>
        /// <returns>返回是否一致，为true一致，为false不一致</returns>
        public override bool Equals(object obj)
        {
            //判断传入对象是否为null
            if (obj == null) return false;
            //将传入对象转换成Base_MacExt数据模型对象
            Base_MacExtMod base_MacExtMod = obj as Base_MacExtMod;
            //判断是否转换成功
            if (base_MacExtMod == null) return false;
            //进行匹配属性的值
            return
                //判断ID是否一致
                this.ID == base_MacExtMod.ID &&
                //判断macID是否一致
                this.MacID == base_MacExtMod.MacID &&
                //判断longi是否一致
                this.Longi == base_MacExtMod.Longi &&
                //判断lati是否一致
                this.Lati == base_MacExtMod.Lati &&
                //判断remark是否一致
                this.Remark == base_MacExtMod.Remark &&
                //判断ChangeTime是否一致
                this.ChangeTime == base_MacExtMod.ChangeTime &&
                //判断sig是否一致
                this.Sig == base_MacExtMod.Sig;
        }
        /// <summary>
        /// 将当前Base_MacExt数据模型对象转换成哈希码
        /// </summary>
        /// <returns>哈希值</returns>
        public override int GetHashCode()
        {
            //将Base_MacExt数据模型对象的属性进行按位异或运算处理得到哈希码并返回
            return
                //将ID进行按位异或运算处理
                this.ID.GetHashCode() ^
                //将macID进行按位异或运算处理
                (this.MacID == null ? 2147483647 : this.MacID.GetHashCode()) ^
                //将longi进行按位异或运算处理
                this.Longi.GetHashCode() ^
                //将lati进行按位异或运算处理
                this.Lati.GetHashCode() ^
                //将remark进行按位异或运算处理
                (this.Remark == null ? 2147483647 : this.Remark.GetHashCode()) ^
                //将ChangeTime进行按位异或运算处理
                this.ChangeTime.GetHashCode() ^
                //将sig进行按位异或运算处理
                (this.Sig == null ? 2147483647 : this.Sig.GetHashCode());
        }
        /// <summary>
        /// 将当前Base_MacExt数据模型对象转换成字符串副本【仅显示在SQL中不能为空的列】
        /// </summary>
        /// <returns>字符串形式副本</returns>
        public override string ToString()
        {
            //将当前Base_MacExt数据模型对象转换成字符串副本
            return
                "[" +
                //将ID转换成字符串
                this.ID + "," +
                //将macID转换成字符串
                this.MacID + "," +
                //将longi转换成字符串
                this.Longi + "," +
                //将lati转换成字符串
                this.Lati + "," +
                //将remark转换成字符串
                this.Remark + "," +
                //将ChangeTime转换成字符串
                this.ChangeTime +
                "]";
        }
    }
}
